<?php
$home = array('home');
$cadastro = array('cfuncionario', 'ccliente', 'cpet', 'cservico');
$vendas = array('vendas');
$relatorio = array('crelatorios');

include_once 'src/funcoes.php';
?>


<nav class="navbar navbar-inverse" style="margin: 0px !important;" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand <?php echo ActiveMenu($home); ?>" href="?s=home">Petshop - Bom pra cachorro</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                
                <li class="dropdown <?php echo ActiveMenu($cadastro); ?>">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Cadastros<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="?s=cfuncionario">Funcionário</a></li>
                        <li><a href="?s=ccliente">Cliente</a></li>
                        <li><a href="?s=cpet">PET</a></li>
                        <li><a href="?s=cservico">Serviço</a></li>
                    </ul>
                </li>
                <li class="<?php echo ActiveMenu($vendas); ?>"><a href="?s=cvenda">Vendas</a></li>
                <!--<li class="<?php echo ActiveMenu($relatorio); ?>"><a href="?s=crelatorios">Relatório</a></li>-->
                
                <li class="dropdown <?php echo ActiveMenu($relatorio); ?>">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Relatório<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="?s=crelatorios&rel1" title="Todos os nomes de servicos (inclusive aqueles que não foram vendidos) e sua respectiva quantidade e o total de $$ por funcionário de uma determinanda data">Relatorio 1</a></li>
                        <li><a href="?s=crelatorios&rel2" >Relatorio 2</a></li>
                        <li><a href="?s=crelatorios&rel3" >Relatorio 3</a></li>
                        <li><a href="?s=crelatorios&rel4" >Relatorio 4</a></li>
                        <li><a href="?s=crelatorios&rel5" >Relatorio 5</a></li>
                    </ul>
                </li>
            </ul>

            <!-- Menu Lado Direito -->
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="glyphicon glyphicon-user"></span> <?php echo $_SESSION['nome']; ?> <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="logout.php">Logout</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>